<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="../../favicon.ico" rel="shortcut icon" />
<link href="../../base.css" rel="stylesheet" type="text/css" media="screen" />
<script src="../../jquery/jquery.js" type="text/javascript"></script>
<script src="../../ux/jquery.ux.js" type="text/javascript"></script>
<script src="../../ux.sortable/jquery.ux.sortable.js" type="text/javascript"></script>
<title>jquery.ux.sortable</title>
</head><body>

<a href="./">&laquo; Index</a>

<style type="text/css">
.ux-sortable {
	table-layout: auto;
	border-collapse: collapse;
	width: 1030px;
	}
.ux-sortable thead td {
	border-width: 2px 1px;
	padding: 4px 10px;
	background: #CCC;
	cursor: pointer;
	}
.ux-sortable td {
	border: 1px solid #555;
	padding: 5px 10px;
	width: auto;
	white-space: nowrap;
	}	
.ux-sortable .ux-sortable-asc {
	border-top-color: #B00;
	}
.ux-sortable .ux-sortable-dsc {
	border-bottom-color: #B00;
	}
.ux-sortable-group {
	cursor: pointer;
	}
.ux-sortable-group td {
	background: #EEE;
	}	
.ux-sortable-closed {
	border-bottom: 2px solid #555;
	}	
</style>

<script type="text/javascript">
jQuery(function($){
	$('#sort1').sortable({
		columns: [
			// name
			"abc",
			// email
			function( txt ){
				// by domain name
				return txt.split('@')[1];
				},
			// street
			function( txt ){
				// ignore street number and case
				return txt.replace(/^[\d]+\s/,"").toLowerCase();
				},
			// city
			"abc",{
			// state
			parse: "abc",
			group: function( arr ){
				return ({
					ct: "Connecticut",
					ri: "Rhode Island",
					ma: "Massachusetts",
					me: "Maine",
					nh: "New Hampshire",
					vt: "Vermont"
					})[ arr[0] ];
				},
			make: function( group ){
				return $('<tr><td colspan="7">'+ group +'</td></tr>');
				},
			closed: true
			},
			// zip
			"123",
			// birthday
			"date"
			],
		perpage: null
		});
	});
</script>

<h2>ux.sortable / complex</h2>

<table cellpadding="0" cellspacing="0" border="0" id="sort1">
	<thead>
		<tr><td>Name</td><td>Email</td><td>Street</td><td>City</td><td>State</td><td>Zip Code</td><td>Birthday</td></tr>
		</thead>
	<tbody>
		<tr><td>Harriet J. Bisson</td><td>hbisson@harvard.edu</td><td>32 Oriole Road</td><td>Pawtucket</td><td>RI</td><td>02860</td><td>May 16, 1955</td></tr>
		<tr><td>Nathanael O. Weeks</td><td>nathanael.weeks@rocketmail.com</td><td>247 Bleeker Avenue</td><td>Fairfield</td><td>CT</td><td>06824</td><td>8.5.1950</td></tr>
		<tr><td>Ericka M. Wentz</td><td>ericka366@aol.com</td><td>324 Piedmont Terrace</td><td>Limerick</td><td>ME</td><td>04048</td><td>1987-07-22</td></tr>
		<tr><td>Alvina B. Hanks</td><td>ahanks@gmail.com</td><td>275 Flicker Drive</td><td>Darien</td><td>CT</td><td>06820</td><td>12/19/39</td></tr>
		<tr><td>Rita A. Staggs</td><td>rstaggs@virgin.net</td><td>241 Chickadee Lane</td><td>Oxbow</td><td>ME</td><td>04764</td><td>Apr. 7, 1969</td></tr>
		<tr><td>Kelly F. Kolb</td><td>kkolb@gmail.com</td><td>258 Cleveland Drive</td><td>Middletown</td><td>CT</td><td>06457</td><td>1966-12-05</td></tr>
		<tr><td>Reuben G. Victor</td><td>reuben@victor.info</td><td>337 Kendall Boulevard</td><td>Hopedale</td><td>MA</td><td>01747</td><td>Mar. 1, 1956</td></tr>
		<tr><td>Tyson G. Isom</td><td>tyson.isom@zworg.com</td><td>181 9th Avenue</td><td>Vergennes</td><td>VT</td><td>05491</td><td>10/8/91</td></tr>
		<tr><td>Patrica L. Moss</td><td>pmoss@usa.net</td><td>320 Limerick Terrace</td><td>Hamden</td><td>CT</td><td>06517</td><td>7.31.1994</td></tr>
		<tr><td>Judith M. Roman</td><td>judith181@gmail.com</td><td>316 2nd Drive</td><td>Granville</td><td>VT</td><td>05747</td><td>October 29, 1969</td></tr>
		<tr><td>Michale T. Lattimore</td><td>michale1330@yahoo.com</td><td>23 Hickory Boulevard</td><td>Portland</td><td>ME</td><td>04101</td><td>4/4/69</td></tr>
		<tr><td>Elroy S. Hedgepeth</td><td>elroy-hedgepeth@gmail.com</td><td>96 Basalt Boulevard</td><td>Chebeague Island</td><td>ME</td><td>04017</td><td>1938-06-25</td></tr>
		<tr><td>Russell L. Webber</td><td>russell1255@usa.net</td><td>409 Lincoln Street</td><td>Atkinson</td><td>NH</td><td>03811</td><td>11.21.1956</td></tr>
		<tr><td>Jerald C. Stuckey</td><td>jerald23@gmail.com</td><td>52 Aqua Lane</td><td>Pomfret</td><td>CT</td><td>06258</td><td>1955-08-17</td></tr>
		<tr><td>Quincy E. Orth</td><td>quincyorth@hotmail.com</td><td>307 Argon Road</td><td>Lewiston</td><td>ME</td><td>04241</td><td>1945-01-18</td></tr>
		<tr><td>Marcella L. Stephen</td><td>marcella_stephen@prodigy.net</td><td>320 White Terrace</td><td>Mapleville</td><td>RI</td><td>02839</td><td>5.22.1963</td></tr>
		<tr><td>Ernestina R. Passmore</td><td>ernestina51@charter.net</td><td>317 Meadowlark Boulevard</td><td>Yarmouth</td><td>ME</td><td>04096</td><td>3.13.1938</td></tr>
		<tr><td>Annette R. Rowan</td><td>annetterowan@dartmouth.edu</td><td>282 Pine Way</td><td>Searsport</td><td>ME</td><td>04974</td><td>Mar. 7, 1996</td></tr>
		<tr><td>Fausto C. Salinas</td><td>faustosalinas@yahoo.com</td><td>340 Talc Lane</td><td>Northwood</td><td>NH</td><td>03261</td><td>June 22, 1982</td></tr>
		<tr><td>Delma T. Orlando</td><td>delma-orlando@hotmail.com</td><td>212 Hermes Avenue</td><td>Medway</td><td>ME</td><td>04460</td><td>7.28.1934</td></tr>
		<tr><td>Arlen L. Rickman</td><td>arlen_rickman@sprynet.com</td><td>104 Ninth Street</td><td>Windham</td><td>NH</td><td>03087</td><td>5.21.1985</td></tr>
		<tr><td>Dusty M. Corbett</td><td>dusty_corbett@prodigy.net</td><td>409 Eisenhower Cove</td><td>Ascutney</td><td>VT</td><td>05030</td><td>August 29, 1953</td></tr>
		<tr><td>Emilio G. Beals</td><td>emilio.beals@mac.com</td><td>4 Fayette Road</td><td>Hull</td><td>MA</td><td>02045</td><td>1951-09-04</td></tr>
		<tr><td>Mack R. Pearl</td><td>mack1050@heartfire.net</td><td>375 Dynamite Drive</td><td>Danielson</td><td>CT</td><td>06239</td><td>1968-07-26</td></tr>
		<tr><td>Aurelio A. Hardesty</td><td>aurelio_hardesty@mindspring.com</td><td>97 Duck Grove</td><td>Hartford</td><td>CT</td><td>06160</td><td>1989-11-24</td></tr>
		<tr><td>Reina G. Rocha</td><td>reina_rocha@webtv.net</td><td>308 Tyler Terrace</td><td>Danvers</td><td>MA</td><td>01923</td><td>Mar. 9, 1964</td></tr>
		<tr><td>Elvira C. Lane</td><td>elviralane@hotmail.com</td><td>8 Carbon Boulevard</td><td>Raynham</td><td>MA</td><td>02767</td><td>10.13.1982</td></tr>
		<tr><td>Joel C. McCoy</td><td>joel_mccoy@charter.net</td><td>85 Buchanan Street</td><td>Charlestown</td><td>MA</td><td>02129</td><td>Apr. 24, 1990</td></tr>
		<tr><td>Robbie R. Guinn</td><td>robbie55@webtv.net</td><td>134 Birch Gardens</td><td>Stamford</td><td>CT</td><td>06905</td><td>1941-03-16</td></tr>
		<tr><td>Wesley B. Chin</td><td>wchin@myway.com</td><td>232 Green View</td><td>Salsbury Cove</td><td>ME</td><td>04672</td><td>4.21.1957</td></tr>
		<tr><td>Mae C. Laplante</td><td>mae654@gmail.com</td><td>344 Nixon Avenue</td><td>West Burke</td><td>VT</td><td>05871</td><td>2.2.1965</td></tr>
		<tr><td>Enrique E. Jolly</td><td>enrique1771@fastmail.com</td><td>147 Partridge Drive</td><td>Stafford Springs</td><td>CT</td><td>06076</td><td>11.2.1957</td></tr>
		<tr><td>Nita A. Stokes</td><td>nita-stokes@webtv.net</td><td>353 Quartz Road</td><td>Castine</td><td>ME</td><td>04421</td><td>1/26/85</td></tr>
		<tr><td>Neville R. Regalado</td><td>nevilleregalado@sprynet.com</td><td>380 Titanium Terrace</td><td>Glencliff</td><td>NH</td><td>03238</td><td>Dec. 15, 1942</td></tr>
		<tr><td>Lynn T. Whatley</td><td>lwhatley@mindspring.com</td><td>122 Crow Drive</td><td>Pittsford</td><td>VT</td><td>05763</td><td>12.16.1938</td></tr>
		<tr><td>Chung F. Delatorre</td><td>chung.delatorre@virgin.net</td><td>16 Hemlock Street</td><td>Auburn</td><td>ME</td><td>04212</td><td>12/17/81</td></tr>
		<tr><td>Kelli V. Manley</td><td>kelli.manley@hotmail.com</td><td>114 Apollo Street</td><td>Taftsville</td><td>VT</td><td>05073</td><td>7/13/66</td></tr>
		<tr><td>Vincent S. McFadden</td><td>vincentmcfadden@yahoo.com</td><td>36 Heron Way</td><td>Lisbon</td><td>ME</td><td>04250</td><td>3.26.1987</td></tr>
		<tr><td>Trudy E. Pina</td><td>trudy_pina@rocketmail.com</td><td>278 Apollo Road</td><td>Isle Au Haut</td><td>ME</td><td>04645</td><td>November 12, 1977</td></tr>
		<tr><td>Cruz G. Hull</td><td>cruzhull@aol.com</td><td>239 8th Boulevard</td><td>Essex</td><td>CT</td><td>06426</td><td>11/18/96</td></tr>
		<tr><td>Ramiro D. Post</td><td>ramiropost@yahoo.com</td><td>383 Cuckoo Street</td><td>Providence</td><td>RI</td><td>02903</td><td>May. 6, 1972</td></tr>
		<tr><td>Brittany S. Chiu</td><td>brittany@chiu.us</td><td>257 Wagtail Road</td><td>Newton Center</td><td>MA</td><td>02159</td><td>10.6.1988</td></tr>
		<tr><td>Andrea D. Frost</td><td>andrea@frost.info</td><td>201 Dickcissel Way</td><td>Lenox</td><td>MA</td><td>01240</td><td>June 9, 1966</td></tr>
		<tr><td>Delores P. Acosta</td><td>dacosta@verizon.net</td><td>248 Nightingale Street</td><td>Randolph</td><td>MA</td><td>02368</td><td>1967-03-19</td></tr>
		<tr><td>Gene A. Penrod</td><td>genepenrod@comcast.net</td><td>29 Milk Gate</td><td>South Hadley</td><td>MA</td><td>01075</td><td>1982-08-06</td></tr>
		<tr><td>Earnest R. Salgado</td><td>esalgado@zworg.com</td><td>47 Bobolink Alley</td><td>West Lynn</td><td>MA</td><td>01905</td><td>8/21/42</td></tr>
		<tr><td>Louise T. Foote</td><td>louise308@mac.com</td><td>256 Wilson Street</td><td>Wallagrass</td><td>ME</td><td>04781</td><td>2/20/40</td></tr>
		<tr><td>Geri E. Berman</td><td>geri.berman@mindspring.com</td><td>212 Tyler Boulevard</td><td>North Brookfield</td><td>MA</td><td>01535</td><td>Aug. 7, 1942</td></tr>
		<tr><td>Tami A. Bellamy</td><td>tami@bellamy.com</td><td>159 Orchid Road</td><td>Silver Lake</td><td>NH</td><td>03875</td><td>1991-06-26</td></tr>
		<tr><td>Guillermo C. McMaster</td><td>gmcmaster@usa.net</td><td>62 1st Street</td><td>Meddybemps</td><td>ME</td><td>04657</td><td>8/20/98</td></tr>
		<tr><td>Erlinda A. Kimbrell</td><td>erlinda@kimbrell.com</td><td>77 Jupiter Lane</td><td>Windham</td><td>ME</td><td>04062</td><td>Mar. 29, 1947</td></tr>
		<tr><td>Corine T. Muniz</td><td>corinemuniz@harvard.edu</td><td>410 Chestnut Lane</td><td>Granby</td><td>VT</td><td>05840</td><td>12.15.1998</td></tr>
		<tr><td>Latanya J. Bryant</td><td>lbryant@charter.net</td><td>12 Lexington Drive</td><td>Farmington</td><td>ME</td><td>04938</td><td>Feb. 3, 1970</td></tr>
		<tr><td>Wiley L. Melancon</td><td>wmelancon@comcast.net</td><td>387 Lemon View</td><td>Blackstone</td><td>MA</td><td>01504</td><td>1.29.1946</td></tr>
		<tr><td>Darlene W. Thornhill</td><td>dthornhill@gmail.com</td><td>73 Fifth Lane</td><td>Farmington</td><td>CT</td><td>06030</td><td>Jan. 6, 1950</td></tr>
		<tr><td>Cruz C. Fannin</td><td>cruz1227@gmail.com</td><td>71 Thor Trail</td><td>Pascoag</td><td>RI</td><td>02859</td><td>December 2, 1972</td></tr>
		<tr><td>Porter K. Rosser</td><td>porter436@yahoo.com</td><td>244 Neon Grove</td><td>Bucksport</td><td>ME</td><td>04416</td><td>5/27/61</td></tr>
		<tr><td>Harland K. Reese</td><td>harland_reese@gmail.com</td><td>298 Memorial Boulevard</td><td>Concord</td><td>NH</td><td>03302</td><td>1973-07-19</td></tr>
		<tr><td>Eloy A. Schell</td><td>eloy.schell@yahoo.com</td><td>107 Rose Avenue</td><td>Bow</td><td>NH</td><td>03304</td><td>8/28/35</td></tr>
		<tr><td>Edwina C. Shores</td><td>edwinashores@harvard.edu</td><td>227 Saturn Lane</td><td>Meriden</td><td>CT</td><td>06450</td><td>1989-12-19</td></tr>
		<tr><td>Ollie T. Barron</td><td>olliebarron@isp.com</td><td>174 Argon View</td><td>Bradford</td><td>MA</td><td>01835</td><td>9.22.1951</td></tr>
		<tr><td>Mary A. Rife</td><td>mary889@hotmail.com</td><td>338 Odin Terrace</td><td>New Haven</td><td>CT</td><td>06508</td><td>9.13.1985</td></tr>
		<tr><td>Neal E. Lovell</td><td>neal67@webtv.net</td><td>132 Grackle Street</td><td>Whitman</td><td>MA</td><td>02382</td><td>1954-04-22</td></tr>
		<tr><td>Rashad V. Eggleston</td><td>reggleston@gmail.com</td><td>190 Duck Road</td><td>Milton</td><td>NH</td><td>03851</td><td>10.25.1935</td></tr>
		<tr><td>Abram A. Gatlin</td><td>abram.gatlin@charter.net</td><td>286 Robin Avenue</td><td>Brookfield</td><td>CT</td><td>06804</td><td>4.6.1945</td></tr>
		<tr><td>Kathi M. Ralph</td><td>kathi@ralph.org</td><td>102 Columbus Boulevard</td><td>Portsmouth</td><td>NH</td><td>00212</td><td>Jun. 8, 1950</td></tr>
		<tr><td>Polly C. Dinkins</td><td>pdinkins@fastmail.com</td><td>291 Sparrow Lane</td><td>Etna</td><td>NH</td><td>03750</td><td>5.14.1962</td></tr>
		<tr><td>Rachelle Y. Casanova</td><td>rcasanova@hotmail.com</td><td>45 Wilson Boulevard</td><td>Rangeley</td><td>ME</td><td>04970</td><td>May. 19, 1980</td></tr>
		<tr><td>Paulina C. Mitchell</td><td>paulinamitchell@gmail.com</td><td>68 North Drive</td><td>Stamford</td><td>CT</td><td>06903</td><td>Dec. 9, 1991</td></tr>
		<tr><td>Efren J. Ruff</td><td>efren-ruff@yahoo.com</td><td>28 Odin Drive</td><td>Orono</td><td>ME</td><td>04469</td><td>Dec. 2, 1977</td></tr>
		<tr><td>Thurman B. Mattson</td><td>tmattson@stanford.edu</td><td>349 Taft Road</td><td>Owls Head</td><td>ME</td><td>04854</td><td>1961-06-13</td></tr>
		<tr><td>Ericka E. Babin</td><td>ericka-babin@hotmail.com</td><td>100 Silver Drive</td><td>West Roxbury</td><td>MA</td><td>02132</td><td>1958-03-14</td></tr>
		<tr><td>Colton R. Clevenger</td><td>colton.clevenger@yahoo.com</td><td>84 Tanager Street</td><td>North Attleboro</td><td>MA</td><td>02763</td><td>December 9, 1942</td></tr>
		<tr><td>Clair M. Billups</td><td>clair@billups.info</td><td>287 Hummingbird Drive</td><td>Templeton</td><td>MA</td><td>01468</td><td>9/10/43</td></tr>
		<tr><td>Rodger G. Ellison</td><td>rellison@gmail.com</td><td>41 Wagtail Boulevard</td><td>Nobleboro</td><td>ME</td><td>04555</td><td>Jul. 19, 1955</td></tr>
		<tr><td>Sam I. Dutton</td><td>samdutton@hotmail.com</td><td>68 Canal Lane</td><td>New Gloucester</td><td>ME</td><td>04260</td><td>7.14.1974</td></tr>
		<tr><td>Eula R. Everhart</td><td>eulaeverhart@dartmouth.edu</td><td>343 10th Alley</td><td>Barnstable</td><td>MA</td><td>02630</td><td>7.1.1996</td></tr>
		<tr><td>Alma R. Lorenzo</td><td>alma1645@yahoo.com</td><td>367 Hickory Street</td><td>Eastford</td><td>CT</td><td>06242</td><td>1957-04-25</td></tr>
		<tr><td>Anastasia C. Robins</td><td>anastasia.robins@pacbell.net</td><td>406 Nightingale Avenue</td><td>Lancaster</td><td>NH</td><td>03584</td><td>5.20.1945</td></tr>
		<tr><td>Cedrick R. Riggins</td><td>cedrick1924@hotmail.com</td><td>412 Venus Heights</td><td>Meredith</td><td>NH</td><td>03253</td><td>1938-03-14</td></tr>
		<tr><td>Sondra W. Kroll</td><td>sondra.kroll@heartfire.net</td><td>318 Helium Cove</td><td>Washington</td><td>ME</td><td>04574</td><td>9.10.1968</td></tr>
		<tr><td>Terrell W. Story</td><td>tstory@hotmail.com</td><td>366 Vesta Gate</td><td>Harrison</td><td>ME</td><td>04040</td><td>1.14.1971</td></tr>
		<tr><td>Sheryl F. Loving</td><td>sloving@sprynet.com</td><td>261 Walnut Street</td><td>Bartlett</td><td>NH</td><td>03812</td><td>1943-10-05</td></tr>
		<tr><td>Kaye C. Pridgen</td><td>kaye.pridgen@hotmail.com</td><td>222 Starling Lane</td><td>Avon</td><td>CT</td><td>06001</td><td>Jul. 31, 1997</td></tr>
		<tr><td>Willy S. Goss</td><td>willy@goss.net</td><td>369 Union Road</td><td>Abington</td><td>MA</td><td>02351</td><td>5/14/85</td></tr>
		<tr><td>Rhonda M. Wing</td><td>rhonda_wing@gmail.com</td><td>26 Market Boulevard</td><td>East Andover</td><td>NH</td><td>03231</td><td>10.7.1956</td></tr>
		<tr><td>Dorris M. Zhang</td><td>dzhang@zworg.com</td><td>259 Somer Drive</td><td>Dudley Hill</td><td>MA</td><td>01570</td><td>3.5.1985</td></tr>
		<tr><td>Abdul R. Barber</td><td>abdul28@berkeley.edu</td><td>389 Ionic Drive</td><td>Milford</td><td>ME</td><td>04461</td><td>5.23.1949</td></tr>
		<tr><td>Kenneth W. Bethea</td><td>kenneth-bethea@yahoo.com</td><td>417 White Avenue</td><td>Florence</td><td>VT</td><td>05744</td><td>8/15/78</td></tr>
		<tr><td>Liza M. Storm</td><td>lizastorm@hotmail.com</td><td>143 Seventh Walk</td><td>Stamford</td><td>VT</td><td>05352</td><td>8.25.1966</td></tr>
		<tr><td>Markus M. Dahl</td><td>mdahl@isp.com</td><td>371 Atlantic Lane</td><td>West Kennebunk</td><td>ME</td><td>04094</td><td>Feb. 11, 1979</td></tr>
		<tr><td>Dick R. Esquivel</td><td>dick.esquivel@aol.com</td><td>265 1st Drive</td><td>Cambridge</td><td>MA</td><td>02139</td><td>8/5/70</td></tr>
		<tr><td>Rickey F. Curry</td><td>rickey_curry@hotmail.com</td><td>128 Washington Trail</td><td>Graniteville</td><td>MA</td><td>01886</td><td>1947-05-25</td></tr>
		<tr><td>Brandi A. Nunez</td><td>brandinunez@gmail.com</td><td>262 Owl Street</td><td>Hartford</td><td>CT</td><td>06120</td><td>January 7, 1953</td></tr>
		<tr><td>Garret W. Castellanos</td><td>garret@castellanos.us</td><td>161 Hickory Road</td><td>North Kingstown</td><td>RI</td><td>02854</td><td>Nov. 21, 1996</td></tr>
		<tr><td>Araceli N. Moya</td><td>amoya@isp.com</td><td>389 Tyler View</td><td>Sebago</td><td>ME</td><td>04029</td><td>12/9/73</td></tr>
		<tr><td>Bernardo L. Fogg</td><td>bernardo-fogg@hotmail.com</td><td>110 Truman Place</td><td>Worcester</td><td>MA</td><td>01602</td><td>1982-11-06</td></tr>
		<tr><td>Susie G. McClain</td><td>susie_mcclain@excite.com</td><td>211 Demeter Boulevard</td><td>Riverton</td><td>CT</td><td>06065</td><td>Apr. 9, 1963</td></tr>
		<tr><td>Jarod S. McBride</td><td>jarod-mcbride@hotmail.com</td><td>245 Oriole Lane</td><td>Silver Lake</td><td>NH</td><td>03875</td><td>January 1, 1966</td></tr>
		<tr><td>Tommie A. Maestas</td><td>tommie694@earthlink.net</td><td>311 Vireo Grove</td><td>Stillwater</td><td>ME</td><td>04489</td><td>10.27.1989</td></tr>
		</tbody>
	</table>

</body></html>